package com.nsn.das.midas.model.mml.data;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.TableGenerator;

@Entity
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
public abstract class MMLData{
	private String unid;
	
	public String getUnid() {
		return unid;
	}
	
	public void setUnid(String unid) {
		this.unid = unid;
	}
	
	
	@Id
	@GeneratedValue(strategy=GenerationType.TABLE,generator="mml_data_pk_gen")
	@TableGenerator(name = "mml_data_pk_gen",
    				table="mml_data_pk",
    				pkColumnName="gen_name",
    				valueColumnName="gen_value",
    				pkColumnValue="mml_data_id",
    				allocationSize=1
	)
	private long id;
	
	public long getId() {
		return id;
	}
}
